package com.example.demo.redisPrefix;

import com.example.demo.redis.BaseRedisImpl;

//商品存储到的前缀和redis存储时间
public class GoodsPrefixAndExpireSecond extends BaseRedisImpl {
    public GoodsPrefixAndExpireSecond(Integer expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static GoodsPrefixAndExpireSecond goodsStorage=new GoodsPrefixAndExpireSecond(0,"goods:");
    //gs代表goodsSeckill，要秒杀的商品
    public static GoodsPrefixAndExpireSecond goodsSeckill=new GoodsPrefixAndExpireSecond(0,"gs:");

    //代表商品已经卖完了
    public static GoodsPrefixAndExpireSecond goodsOver=new GoodsPrefixAndExpireSecond(0,"goodsOver:");

}
